<?php
namespace app\html\model;

use think\Model;

class Filex extends Model
{
	protected $webName;
	public function getThumbById($id){
		$mess=Filex::get($id);
		$mess=$mess->toArray();//对象系列化为数组
		// $mess=$mess->toJson();//对象序列化为json字符串
		// $mess->getAttr('sitename');//获取对象中字段的值

		// $Systemt=new Systemt;
		// $mess=$Systemt->find($id);
		return $mess['thumb'];
	}
	public function getFieldById($id,$field){
		$data=Filex::where('id',$id)->value($field);

		return $data;
	}
}